package br.com.rafsoft.mapaentrega.shared;

import java.util.List;

import com.google.web.bindery.requestfactory.shared.Request;
import com.google.web.bindery.requestfactory.shared.RequestContext;
import com.google.web.bindery.requestfactory.shared.ServiceName;

@ServiceName("br.com.rafsoft.mapaentrega.server.MapaEntregaService")
public interface MessageRequest extends RequestContext {

	Request<MessageProxy> createMessage();

	Request<MessageProxy> readMessage(Long id);

	Request<MessageProxy> updateMessage(MessageProxy message);

	Request<Void> deleteMessage(MessageProxy message);

	Request<List<MessageProxy>> queryMessages();
	
	Request<List<MessageProxy>> queryMessagesUser(String user);

}
